package com.shoppingmall.service;

import com.shoppingmall.common.ServletResponse;
import com.shoppingmall.pojo.Product;

/**
 * Created by
 *
 * @author touni
 * @date 2019/3/19
 * @time 18:06
 */
public interface ProductService {

    ServletResponse getProductDetail(Integer productId);

    ServletResponse listAllProduct(Integer pageNum, Integer pageSize);

    ServletResponse listProductByProductNameOrProductId(String productName, Integer productId, Integer pageNum, Integer pageSize);

    ServletResponse setSaleStatus(Integer productId, Integer status);

    ServletResponse saveOrUpdate(Product product);

    ServletResponse userListProductByCategoryIdAndKeyword(Integer categoryId, String keyword, Integer pageNum, Integer pageSize, String orderBy);

    ServletResponse userGetProductDetail(Integer productId);
}
